﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TomatoClock.Models
{
    public class PomodoroTask
    {
        public string Name { get; set; }       
        public int UserId { get; set; }
        public int Duration { get; set; } // in minutes
        public string Type { get; set; }
        public bool IsCompleted { get; set; }
        public bool IsPaused { get; set; }
        public String Note { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime? EndTime { get; set; }
        public int TimeLeft { get; set; } // in seconds

        public PomodoroTask()
        {
            IsCompleted = false;
            IsPaused = false;
            EndTime = null;
            TimeLeft = Duration * 60; // Default to the full duration in seconds
        }
    }
}
